from examination.scoring.interface.scoring_utils import ScoringUtils
from examination.scoring.iml.code_scoring import CodeScoring

class ScoringFactory:
    @staticmethod
    def getScoringUtils(topic_type)->ScoringUtils:
        if topic_type == "code":
            return CodeScoring()
        else:
            raise ValueError("Invalid topic type")
            return None

if __name__ == "__main__":
    scoring_utils = ScoringFactory.getScoringUtils("code")
    print(scoring_utils)